package hottargui.domain.alpha;

import hottargui.domain.*;

public class AlphaWinnerStrategyImpl implements WinnerStrategy {

	private Board _board;

	public AlphaWinnerStrategyImpl(Board b) {
		_board = b;
	}

	public PlayerColor getTheWinner(){
		PlayerColor[] _winningPlayers;
		_winningPlayers = getWinnerPrimaryObjectiv();

		return _winningPlayers[0];
	}

	public PlayerColor[] getWinnerPrimaryObjectiv() {
		PlayerColor[] _primaryPlayers = new PlayerColor[1]; 
		Tile t = _board.getTile(new Position(3,3));
		_primaryPlayers[0] = t.getOwnerColor();
		return _primaryPlayers;
	}

	public PlayerColor getWinnerSecundaryObjectiv() {
		// not in use in AlphaWinnerstrategy
		return null;
	}


}
